<?php
function smarty_function_url($params, &$smarty){
	$target = $params['target'] ? $params['target'] : 'index.php';
	unset($params['target']);
	return KURL::get($params, $target);
}